#include "workermi.h"
#include <iostream>
using std::cin;
using std::cout;
using std::endl;

const int SIZE = 5;

int main(int argc, char const *argv[])
{
    freopen("input.txt", "r", stdin);
    
    Worker * workers[SIZE];

    int i;
    for (i = 0; i < SIZE; ++i)
    {
        char choice;
        cin >> choice;
        // cout << choice;
        if (choice == 'q') break;
        switch (choice)
        {
        case 'w':
            workers[i] = new Waiter;
            break;
        case 's':
            workers[i] = new Singer;
            break;
        case 't':
            workers[i] = new SingingWaiter;
            break;        
        }

        cin.get();
        workers[i]->Set();
    }

    cout << "Here is your staff:" << endl;
    int ii;
    for (ii = 0; ii < i; ++ii)
    {
        cout << endl;
        workers[ii]->Show();
    }
    
    return 0;
}

